package com.yugao.fintech.antelope.pay.common.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 接口配置参数, 暂时没有用到 <br/>
 * [
 * {
 * "field": "appAuthToken",
 * "label": "子商户app_auth_token",
 * "component": "text",
 * "helpMessage": "测试",
 * "show": true,
 * "readOnly": true
 * }
 * ]
 *

 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PayIfConfigParams {
    /**
     * 前端表单的字段
     */
    private String field;
    /**
     * 前端表单的标签
     */
    private String label;
    /**
     * 是否必填
     */
    private Boolean required = Boolean.FALSE;
    /**
     * 前端展示的组件
     */
    private String component;

    private String defaultValue;
    /**
     * 组件属性
     */
    private Map<String, Object> componentProps;
    /**
     * 校验规则
     */
    private String verify;
    /**
     * 帮助信息
     */
    private String helpMessage;
    /**
     * 是否展示
     */
    private Boolean show = Boolean.TRUE;
    /**
     * 是否只读
     */
    private Boolean readOnly = Boolean.FALSE;
}
